package com.kimoge.spring6.resources.resourceloaderaware;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ResourceLoader;

/**
 * @author kimoge
 * @date 2025/8/30
 * @description
 */
public class Demo {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        TestBean testBean = context.getBean("testBean", TestBean.class);

        ResourceLoader resourceLoader = testBean.getResourceLoader();
        System.out.println(resourceLoader==context);
    }
}
